﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<link rel="stylesheet" href='./css/taskstyle.css' />
<link rel="stylesheet" href='./css/nav.css' />
<link rel="stylesheet" href='./css/main.css' />
<jsp:include page="/commonPages/admin-meta.jsp" flush="true" />
<!-- CSS files -->
<jsp:include page="/commonPages/admin-style.jsp" flush="true" />
<style type="text/css">

/*a  upload */
.a-upload1 {
	padding: 4px 10px;
	height: 30px;
	line-height: 20px;
	position: relative;
	cursor: pointer;
	color: #1E88C7;
	background: white;;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	*zoom: 1
}

.a-upload1  input {
	position: absolute;
	font-size: 100px;
	right: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity = 0);
	cursor: pointer
}

.a-upload1:hover {
	color: #444;
	background: #eee;
	border-color: #ccc;
	text-decoration: none
}

.a-upload2 {
	padding: 4px 10px;
	height: 30px;
	line-height: 20px;
	position: relative;
	cursor: pointer;
	color: #1E88C7;
	background: white;;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	*zoom: 1
}

.a-upload2  input {
	position: absolute;
	font-size: 100px;
	right: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity = 0);
	cursor: pointer
}

.a-upload2:hover {
	color: #444;
	background: #eee;
	border-color: #ccc;
	text-decoration: none
}

.a-upload3 {
	padding: 4px 10px;
	height: 30px;
	line-height: 20px;
	position: relative;
	cursor: pointer;
	color: #1E88C7;
	background: white;;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	*zoom: 1
}

.a-upload3  input {
	position: absolute;
	font-size: 100px;
	right: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity = 0);
	cursor: pointer
}

.a-upload3:hover {
	color: #444;
	background: #eee;
	border-color: #ccc;
	text-decoration: none
}
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

<script type="text/javascript">
    </script>
<script>
	var taskType = "${taskType}";
	$("#" + taskType).attr("class", "selected");
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>





</head>

<body>
	<div id="wrapper">

		<!-- Navigation -->
		<jsp:include page="/commonPages/admin-navigator.jsp" flush="true" />


		<div id="page-wrapper">

			<div id="main">

				<div class="where">
					<ul>
					</ul>
				</div>

				<div class="sort_switch">
					
					<h3>开始审批</h3>
				
				</div>

				<div id="tagContent0" class="sort_content">

					<div class="currency_area hue9">
					
					<form method="post" action="./process/processComplete"
										id="auditForm" enctype="multipart/form-data">
						<div class="the_content">
							<table class="tableHue2" width="100%" border="1"
								bordercolor="#dddddd" cellspacing="0" cellpadding="0">
								<tbody>
									<c:forEach items="${programs}" var="program">
										<tr>

											<td width="15%" class="title1">项目名称：</td>
											<td class="left">${program.proName }</td>
										</tr>
										<tr>
											<td width="15%" class="title1">申请类型：</td>
											<td class="left">${program.type }</td>
										</tr>
									</c:forEach>

									<tr>
										<td width="15%" class="title1">申请材料：</td>
										<td class="left">

											<table>

												<c:forEach items="${userAttachments}" var="userAttachment">
													<tr>
														<td>${userAttachment.name}<a
															href="./process/downloadFiles?url=${userAttachment.url}&filename=${userAttachment.name}">下载</a>
														
														</td>
													</tr>
													
												</c:forEach>

											</table>
										</td>
									</tr>
									<tr>
										<td width="15%" class="title1">行政部门审核结果：</td>
										<td class="left">

											<table>

												<c:forEach items="${departmentAttachments}"
													var="departmentAttachment">
													<tr>
														<td>${departmentAttachment.name}<a
															href="./process/downloadFiles?url=${departmentAttachment.url}&filename=${departmentAttachment.name}">下载</a></td>
													</tr>
												</c:forEach>

											</table>
										</td>
									</tr>
									<tr>
										<td width="15%" class="title1">行政部门审核意见：</td>
										<td class="left">

											<table>
									<c:forEach var="comment" items="${comments}">
									<tr>
										<td>${comment.userName}：${comment.content}</td>
									</tr>
									
									</c:forEach>
								</table>
										</td>
									</tr>
									<tr>
                          	<td width="15%" class="title1">我的意见：</td>
                          	<td class="left">
								<textarea cols="33" rows="5" name="content"></textarea>
							</td>
                       		 </tr>
										<input type="hidden" value="" id="buttonID"name = "buttonID" />
										<input type="hidden" value="${taskId}" name="taskId" />
										<input type="hidden" value="${programName }" name="programName" />
										<input type="hidden" value="${programType }" name="programType" />
										<input type="hidden" value="${userId }" name="userId" />
										
										<c:if test="${param.type == 3}">
											<tr>

												<td>
												<select name="select" >
												<option selected>请选择</option>
												<option value="1">开具受理通知书</option>
												<option value="2">开具不受理通知书</option>
												<option value="3">补全材料</option>
												</select>
												
												</td>
												<td>	
													<input
														type="file" name="file" id="">
												</td>
											</tr>

											
										</c:if>
										<c:if test="${param.type == 2}">
											<tr>

												<td>
												<select name = "select" >
												<option>请选择</option>
												<option value="1">审查通过</option>
												<option value="2">审查不通过</option>
												</select>
												
												</td>
												<td>	
													<input
														type="file" name="file" id="">
												</td>
											</tr>


										</c:if>
										<c:if test="${param.type == 1}">
											<tr>
												<td><a href="javascript:;" class="a-upload1"
													id="" onclick="showID1this()"> <input
														type="file" name="file" id="">审批结果
												</a></td>
												<td>
													<div id="showFileName1"></div>
													<div id="fileerrorTip1">您未上传文件</div>
												</td>
											</tr>


										</c:if>
								</tbody>
							</table>

						</div>
					</div>

					<div id="submit">

						<div class="_confirm">

							<div>
							
							
								<input type="submit" value="确定" />
							
							</div>
							
							
						</div>





					</div>


				</div>
			</div>
			</form>
		</div>
		<!-- /#page-wrapper -->

	</div>
	<!-- /#wrapper -->

	<!-- JS files -->
	<jsp:include page="/commonPages/admin-script.jsp" flush="true" />

	

</body>


</html>
